Image Matrix


Matrix Object is an advanced script object in MMB. It contains rows and columns. We can decide how many columns & rows should it have. Every cell has own address.

Imagine you would like to create a Game board with 5 x 5 stones, On each position of the board you can have one of the 3 images or nothing. This could be a lot of work with putting simple bitmap object and then all the show - hide commands for all objects!
Image Matrix helps you do this and a lot of other projects.

The number of Columns and Rows determines the size of the Image Matrix object. You must have at least the image #1 defined. The Columns and Rows are multiplied by the image #1 width and height producing the total Matrix size.

All the 3 images should be the same size.

You can reach each cell with MatrixName[Column, Row] format.

Images?

You can use max. 4 images with the matrix object. Suppose that we have selected below images:                

  RESERVED FOR NULL IMAGE
Name image0 image1 image2 image3
Image index 0 1 2 3

Putting It Together...

First run MMB & open a new project. Put an image matrix to the page.

Adjust the properties. 

Matrix object will be filled with default image.

See also the Matrix Functions.